import request from '@/utils/request'
export function getAllTasksRecord(){
    return request({
        url:'/db/get_all_tasks_record',
        method:'get'
    })
}
export function getProgress(jobId){
    return request({
        url:'/crawl/get_progress',
        method:'get',
        params:{
            jobId
        }
    })
}
export function cancelTaskByJobId(jobId){
    return request({
        url: '/crawl/cancel_task',
        method:'get',
        params:{
            jobId
        }
    })
}
export function deleteTaskRecordByJobId(jobId){
    return request({
        url: '/db/delete_task',
        method:'get',
        params:{
            jobId
        }
    })
}
export function getKeywordRecommendation(){
    return request({
        url: '/db/get_keyword_recommendation',
        method:'get',

    })
}




